<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/js/jquery-2.1.4.min.js"></script>
<link href="/css/task1.css" rel='stylesheet' type='text/css'/>
</head>

<script type="text/javascript">
var  thisURL = document.URL;  
var  getval =thisURL.split('?')[1];  
var  taskId= getval.split("=")[1];  

function taskIdl(){
	  document.getElementById('task_ground').value=taskId;
}

 $(document).ready(function(){
	 taskIdl();
	 
	  $.ajax({ 	
		 url:'/task/taskshow',
		 type:'post',
		 dataType:'json',
		 data:{"taskId":taskId},
		 success:function(data){
			$.each(data,function(inx,ele){
				$("#task_name").append(ele.taskName)
				$("#task_salary").append(ele.budget)
				$("#city").append(ele.city)
				$("#time").append(ele.modified)
				$("#zk_number").append(ele.zkNumber)
				$("#work_model").append(ele.workModel)
				$("#project_cycle").append(ele.projectCycle)
				$("#skill").append(ele.skill)
				$("#details").append(ele.details)
				
			
			}) 
			}
		 
	  })
	  $.ajax({
			 url:'/zkdetail/zkdetailshow',
			 type:'post',	
			 dataType:'json',
			 data:{"taskId":taskId},
			 success:function(data){
				$.each(data,function(inx,ele){
					 $("#zkdetail").append("<div class='zk_show'><span class='zkname'>"+ele.zkName+"</span>  <span class='skill'>"+ele.skill+"</span>  <span class='workyear'>"
							 +ele.workYears+"年工作经验"+"</span></div>"); 
				/* var show="";
				for(var i=0;i<data.length;i++){
					var ls=data[i];
					show +="<tr><td>"+ls.zk_name+"</td> <td>"+ls.skill+"</td> <td>"+ls.work_years+"</td></tr>"
					$("#candidate").html(show); */
				})	  
				 }
		 }) 

 });

 
</script>
<body>

  <div id="task_ground">
	<div class="task_intro">
		<div id="task_name"></div>
		<div id="task_salary"></div>
		<div id="sumber"><a href="#">立即竞标</a></div>
	</div>
	
	<div class="task_details">
	 <h3>任务详情</h3>
	<div id="city">所在城市:</div>
	<div id="time">更新时间:</div>
	<div id="zk_number">所需人数:</div>
	<div id="work_model">工作形式:</div>
	<div id="project_cycle">项目周期:</div>
	<div id="skill">所需技能:</div>
	<div id="details">项目详情:</div>
	</div>


	<div id="zkdetail"></div>
	
	</div>
	<div id="taskdetail"></div>

</body>
</html>